package com.sina.shop.manage.service.card;

import com.sina.shop.core.BaseService;
import com.sina.shop.core.exception.client.DataException;
import com.sina.shop.core.exception.server.CreateException;
import com.sina.shop.core.exception.server.ResourceExistsException;
import com.sina.shop.core.exception.server.UpdateException;
import com.sina.shop.domain.card.Card;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2018-01-10-18:04
 */
public interface CardManageService extends BaseService {


    List<Card> getCardByAdminAccount(String account);

    Card getCardById(Long id);

    int deleteCard(Long id) throws DataException, UpdateException;

    Card saveCard(Card card) throws CreateException, ResourceExistsException, DataException;

    Card updateCard(Card card) throws UpdateException, DataException;

    List<Map<String, Object>> getCardList(Card card, Long count[]);
}
